@extends("home.layouts")

@section("content")
	<div class="container">
  <ul class="breadcrumb">
        <li><a href="http://shop14.jccms.cn/index.php?route=common/home"><i class="fa fa-home"></i></a></li>
        <li><a href="http://shop14.jccms.cn/index.php?route=account/account">賬戶1</a></li>
      </ul>
    <div class="row">
     <div id="content" class="col-sm-9">      
        <h2>地址列表</h2>
        <div class="table-responsive">

        <table class="table table-bordered table-hover">
          <tbody>
            @foreach($datas as $v)
            <tr>
              <td class="text-left">
                {{ $v->full_address }} @if($v->is_default) <span class="text-success">(默认地址)</span> @endif
              </td>
              <td class="text-right"><a href="{{ route('address.edit', $v) }}" class="btn btn-info">編輯</a> &nbsp; <a data-type="delete" href="javascript:;" data-url="{{ route('address.destroy', $v) }}" class="btn btn-danger">刪除</a>
              </td>
            </tr>
            @endforeach
          </tbody>
        </table>
      </div>

      <div class="buttons clearfix">
        <div class="pull-left"><a href="http://shop14.jccms.cn/index.php?route=account/account" class="btn btn-default">返回</a></div>
        <div class="pull-right"><a href="{{ route('address.create') }}" class="btn btn-primary">新地址</a></div>
      </div>
      </div>

    <!-- <aside id="column-right" class="col-sm-3 hidden-xs">
    <div class="list-group">
    <a href="http://shop14.jccms.cn/index.php?route=account/account" class="list-group-item">會員賬戶</a>
    <a href="http://shop14.jccms.cn/index.php?route=account/edit" class="list-group-item">編輯賬戶</a> <a href="http://shop14.jccms.cn/index.php?route=account/password" class="list-group-item">密碼</a>
    <a href="http://shop14.jccms.cn/index.php?route=account/address" class="list-group-item">地址簿</a> <a href="http://shop14.jccms.cn/index.php?route=account/wishlist" class="list-group-item">收藏列表</a> <a href="http://shop14.jccms.cn/index.php?route=account/order" class="list-group-item">歷史訂單</a> <a href="http://shop14.jccms.cn/index.php?route=account/download" class="list-group-item">下載文件</a><a href="http://shop14.jccms.cn/index.php?route=account/recurring" class="list-group-item">分期付款</a> <a href="http://shop14.jccms.cn/index.php?route=account/reward" class="list-group-item">獎勵積分</a> <a href="http://shop14.jccms.cn/index.php?route=account/return" class="list-group-item">商品退換</a> <a href="http://shop14.jccms.cn/index.php?route=account/transaction" class="list-group-item">賬戶余額</a> <a href="http://shop14.jccms.cn/index.php?route=account/newsletter" class="list-group-item">新聞訂閱</a>
    <a href="http://shop14.jccms.cn/index.php?route=account/logout" class="list-group-item">退出登錄</a>
  </div>
  </aside> -->
</div>
</div>
@endsection